package com.fary.boot.autoconfigure.security;

import com.fary.boot.autoconfigure.condition.ConditionalOnClass;
import com.fary.boot.autoconfigure.condition.ConditionalOnMissingBean;
import com.fary.context.annotation.Bean;
import com.fary.context.annotation.Configuration;

@Configuration(proxyBeanMethods = false)
@ConditionalOnClass(SecurityEvaluationContextExtension.class)
public class SecurityDataConfiguration {

	@Bean
	@ConditionalOnMissingBean
	public SecurityEvaluationContextExtension securityEvaluationContextExtension() {
		return new SecurityEvaluationContextExtension();
	}

}